#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define size 5
void input(int arr[], int sz)
{
	for (int i = 0; i < sz; i++)
	{
		scanf("%d", &arr[i]);
	}
}
void swap_array(int arr1[], int arr2[], int sz)
{
	for (int i = 0; i < sz; i++)
	{
		int temp = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = temp;
	}
}
void print(int arr[], int sz)
{
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}
int main()
{
	int arr1[size] = { 0 };
	int arr2[size] = { 0 };
	input(arr1,size);
	input(arr2,size);
	swap_array(arr1, arr2, size);
	printf("arr1: ");
	print(arr1,size);
	printf("arr2: ");
	print(arr2,size);
	return 0;
}